Skip to content

[evm] Introduce HandlerV2 with batch call support#723

Merged
dharjeezy merged 7 commits into
relayer-v2from
dami/introduce-handler-v2
Mar 26, 2026
Merged

[evm] Introduce HandlerV2 with batch call support#723
dharjeezy merged 7 commits into
relayer-v2from
dami/introduce-handler-v2

Conversation

@dharjeezy

Copy link
Copy Markdown
Contributor
  • Introduces IConsensusV2 interface that returns authority set epoch information alongside consensus state and intermediate states
  • Introduces IHandlerV2 extending IHandler with batchCall(bytes[] calls) so relayers can bundle multiple handler operations (consensus update + message delivery + timeouts) into a single atomic transaction
  • Implements HandlerV2 inheriting HandlerV1 which overrides handleConsensus to use IConsensusV2 and tracks which relayer submitted each epoch's consensus proof via mapping(uint256 => address) _relayers

@dharjeezy dharjeezy requested a review from Wizdave97 March 20, 2026 15:58

@seunlanlege seunlanlege left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also have the IconsensusV2 implementation for the existing beefy clients.

Comment thread evm/src/core/HandlerV2.sol Outdated
@dharjeezy dharjeezy marked this pull request as draft March 23, 2026 16:34
@dharjeezy dharjeezy changed the base branch from main to relayer-v2 March 24, 2026 10:17
@dharjeezy dharjeezy requested a review from seunlanlege March 24, 2026 16:50
Comment thread evm/src/consensus/ConsensusRouter.sol Outdated
Comment thread evm/src/core/HandlerV2.sol Outdated
Comment thread evm/src/core/HandlerV2.sol Outdated
Comment thread evm/src/core/HandlerV2.sol Outdated
@Wizdave97 Wizdave97 changed the title Introduce HandlerV2 with batch call support [evm] Introduce HandlerV2 with batch call support Mar 25, 2026
Comment thread evm/src/consensus/SP1Beefy.sol Outdated
Comment thread evm/src/core/HandlerV2.sol Outdated
@dharjeezy dharjeezy marked this pull request as ready for review March 26, 2026 09:39
@dharjeezy dharjeezy merged commit 491c410 into relayer-v2 Mar 26, 2026
1 check passed
@dharjeezy dharjeezy deleted the dami/introduce-handler-v2 branch March 26, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants